package edu.tsinghua.lumaqq.qq.packets.in._08;

import java.nio.ByteBuffer;

import edu.tsinghua.lumaqq.qq.beans.QQUser;
import edu.tsinghua.lumaqq.qq.packets.PacketParseException;
import edu.tsinghua.lumaqq.qq.packets._08BasicInPacket;

/**
 * 用户输入状态包
 *
 * @author seraph 2008-4-5
 */
public class _08InputStatusPacket extends _08BasicInPacket {

    public int userQQ = 0;
    public int friendQQ = 0;
    public int flag = 0;

    public _08InputStatusPacket(ByteBuffer buf, int length, QQUser user)
            throws PacketParseException {
        super(buf, length, user);
    }

    @Override
    protected void parseBody(ByteBuffer buf) throws PacketParseException {
        System.out.println("*********************执行到了这里");
        //好友的QQ号
        friendQQ = buf.getInt();
        userQQ = buf.getInt();
        buf.getInt();//位置4字节
        flag = buf.getInt();//位置4字节
        buf.getInt();//位置4字节
        buf.getInt();//还是好友QQ
    }

}
